<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<meta name="renderer" content="webkit" />
<link href="/static/css/card2.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="/static/scripts/jquery-1.9.0.min.js"></script>
<script type="text/javascript" src="/static/scripts/snapshot/layer-v3.1.1/layer.js"></script>
<script type="text/javascript" src="/static/scripts/base_tools.js"></script>
<link rel="shortcut icon" href="/static/images/favicon.png" type="image/png"/>
<script type="text/javascript" src="/static/scripts/result.js"></script>
<title>查看答卷</title>
<script type="text/javascript">
function _refresh(){
	window.location=window.location+'';
}
</script>
</head>
<body>
	<div id="ui_wrapper">
		<div class="ui-main-view-result">
				<div class="ui-action-bar">
					
					<button onclick="myCloseWindow()">关闭当前窗口</button>
				</div>
				
					<div class="ui-iframe-wrapper">
						<iframe frameborder="0" class="ui-paper-iframe"></iframe>
					</div>
					<script type="text/javascript">
					function myCloseWindow(){
                    	    window.close();
                    }
					(function($,win){
						$(document).ready(function(){
								var jwin=$(win);
								var iframe=$('.ui-paper-iframe');
								var actionBar=$('.ui-action-bar');
								function onResizeWindow(){
									var docHeight=0;
									if( jwin.height() ){  
										docHeight=jwin.height();
									}else{
										docHeight=$(document).height();
									}	
									iframe.height(docHeight-actionBar.outerHeight());
								}
								jwin.bind('resize',onResizeWindow);
								onResizeWindow();
								var examOption = {};
                                examOption.userExamId = '80976_350111198112051912_202504_fzugk_1742635842055';
                                // examOption.basePath = '/exam/student/exam';
                                examOption.basePath = '/static/json';
                                examOption.allowSeeAnswer = true;
                                examOption.allowSeeEorrer = true;
                                examOption.confuseOrder = false;
                                examOption.confuseChoice = false;
                                examOption.isAddFavorite = false;
                                examOption.favoriteUrl = '';
								win.__ExamIns=new ExamObj(examOption);
								// iframe.prop('src','/exam/student/exam/resource/paper_card2/38676/164028/83__index.html');
								iframe.prop('src','83__index.html');
								//如果不允许看答案的逻辑
								if(''!=''){
									var allowSeeAnswerHasTime=+0;
									var msg=$('<center>查看答卷的时间已到</center>').css({"font-size":"20px","color":"red","padding":"20px"});
									if(allowSeeAnswerHasTime>0){
										setTimeout(function(){
											$('.ui-iframe-wrapper').empty().append(msg);
										},allowSeeAnswerHasTime*1000);
									}else{
										$('.ui-iframe-wrapper').empty().append(msg);								
									}
								}
						});
					})(jQuery,window);
					</script>
				
		</div>
	</div>
</body>
</html>